﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Center.lib.utils.common
{
    public class ListUtils
    {
        public static List<String> copyString(List<String> soures)
        {
            List<String> copys = new List<String>();
            soures.ForEach(p =>
            {
                copys.Add(p);
            });
            return copys;
        }
        public static List<string> listSort(List<string> strList)
        {
            if (strList != null && strList.Count > 0)
            {
                //strList.Sort((x, y) => -x.CompareTo(y)); //逆序
                strList.Sort((x, y) => x.CompareTo(y)); //顺序
            }
            return strList;
        }
    }
}
